from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def ss(self):
        ele=(By.ANDROID_UIAUTOMATOR,'new UiSelector().text("搜索菜谱")')
        loc=self.find_ele(ele)
        return loc
    def ss1(self):
        ele=(By.ID,'com.xiachufang:id/search_edit_text')
        loc=self.find_ele(ele)
        return loc
    def dians(self):
        ele=(By.XPATH,'//android.widget.TextView[@text="搜索"]')
        loc=self.find_ele(ele)
        return loc
    def duanyan(self):
        ele=(By.XPATH,'//android.widget.TextView[@resource-id="com.xiachufang:id/tv_content" and @text="全部"]')
        loc=self.find_ele(ele)
        return loc
